-- GENERATED SPELL FOR [Selas] --


function spell0_27580(pUnit, Event) --@Axe Volley,Self--
pUnit:FullCastSpellOnTarget(53239,pUnit)
pUnit:RegisterEvent('Sorts_27580', 4000, 1)
end

function spell1_27580(pUnit, Event) --@Killing Rage,Self--
pUnit:FullCastSpellOnTarget(52071,pUnit)
pUnit:RegisterEvent('Sorts_27580', 6290, 1)
end

function Sorts_27580(pUnit, Event)
local choix_sorts_27580 = math.random(0, 1)
if choix_sorts_27580 == 0 then
pUnit:RegisterEvent('spell0_27580', 1, 1)
end
if choix_sorts_27580 == 1 then
pUnit:RegisterEvent('spell1_27580', 1, 1)
end
end

function mob27580_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27580', math.random(1500, 3000), 1)
end

function mob27580_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27580_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27580_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27580, 1, 'mob27580_Action')
RegisterUnitEvent(27580, 2, 'mob27580_Leave')
RegisterUnitEvent(27580, 3, 'mob27580_Kill')
RegisterUnitEvent(27580, 4, 'mob27580_Die')
